package com.strings;

public class Split {
    public static void main(String[] args) {

        String str = new String("Welcome-to-Runoob");

        System.out.println("- 分隔符返回值 :" );
        for (String retval: str.split("-")){
            System.out.println(retval);
        }
    }
}
